package Text6;

public class OUT {
    public String name="外部姓名";
    class IN{
        public String name="内部姓名";
        private double a=10.3;

        public double getA() {
            return a;
        }
    }
    public IN getIn(){
        return new IN();
    }
}
class Main{
    public static void main(String[] args) {
        OUT out = new OUT();
        OUT.IN in = out.new IN();
        System.out.println(in.name);
        System.out.println(in.getA());
        OUT.IN in1= out.getIn();
        System.out.println(in1.getA());
        OUT.IN in2 = new OUT().new IN();
        System.out.println(in2.name);
    }
}
